package mailsystem;
/**
   A message left by the caller.
*/
public class Message
{
   /**
      Construct a Message object.
      @param messageText the message text
 * @param id The message Id
 * @param theAudioMode is this an audio message?
   */
   public Message(String messageText, int id, boolean theAudioMode)
   {
      text = messageText;
      setMessageId(id);
      audio = theAudioMode;
   }

   /**
      Get the message text.
      @return message text
   */
   public String getText()
   {
      return text;
   }
   
   public int getMessageId()
   {
	   return messageId;
   }
   
   public void setMessageId(int id)
   {
	   messageId = id;
   }
   
   public boolean isAudio()
   {
	   return audio;
   }

   private String text;
   private int messageId;
   private boolean audio;
}
